﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace QuanLyDiemSinhVien.Manager
{
    public class ExamRoomInfo
    {
        private readonly int _examRoomId;
        private string _examRoomName;
        private string _description;
        private bool _status;

        public ExamRoomInfo() { }

        public ExamRoomInfo(DataTable dtb)
        {
            if (dtb != null && dtb.Rows.Count > 0)
            {
                _examRoomId = Convert.ToInt32(dtb.Rows[0][0].ToString());
                _examRoomName = dtb.Rows[0][1].ToString();
                _description = dtb.Rows[0][2].ToString();
                _status = Convert.ToBoolean(dtb.Rows[0][3].ToString());
            }
        }

    }
}
